package org.zxp.esclientrhlspring.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
import org.zxp.esclientrhlspring.config.ElasticsearchProperties4Spring;

/**
 * @program: esclientrhlDemo4spring
 * @description:
 * @author: X-Pacific zhang
 * @create: 2021-04-09 10:49
 **/
@Component
@ComponentScan("org.zxp.esclientrhlspring")
public class InitConfig {
    @Bean
    public ElasticsearchProperties4Spring elasticsearchProperties4Spring(){
        ElasticsearchProperties4Spring properties = new ElasticsearchProperties4Spring();
        properties.setHost("127.0.0.1:9200");
        return properties;
    }
}
